package services;


public abstract class DAOFactory {

	public static final DAOFactory OPENJPA = new DAOFactoryOpenJpa();

	public static final DAOFactory DEFAULT = OPENJPA;
	
	private static DAOFactory _singleton;
	
	public static DAOFactory getInstance() {
		if (_singleton == null) _singleton = new DAOFactoryOpenJpa();
		return _singleton;
	}

	public abstract IUserService getUserService();

	public abstract IImageService getImageService();

}
